package com.anzia.vueblog.util;

import com.anzia.vueblog.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

/**
 *@ClassName ShiroUtil
 *@Description
 *@Author Anzia.
 *@Date 2021/4/25 8:48
 *@Version 1.0
 **/
public class ShiroUtil {
    public static AccountProfile getProfile() {
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
